package com.xiaozhaovip.demo.intf.service;

import com.xiaozhaovip.demo.intf.entity.YueQiLaiActivityJoiner;

/**
 * 活动参与人服务
 *
 * @author Cauli
 */
public interface YueQiLaiActivityJoinerService {
    /**
     * 根据用户id和活动id查询报名信息
     *
     * @param userId
     * @param activityId
     * @return
     */
    YueQiLaiActivityJoiner loadByUserIdAndActivityId(int userId, int activityId);

    /**
     * 添加新的报名信息
     *
     * @param joiner
     * @return
     */
    int insert(YueQiLaiActivityJoiner joiner);

    /**
     * 通过joinerId更新参加参与人的报名状态
     *
     * @param joinerId
     * @param activityId
     * @param status
     * @return
     */
    int updateJoinerStatusById(int joinerId, int activityId, int status);
}
